/* 
 * Created on 03/09/2012 - 08:54 AM
 */
package sembr.vtk.reader;

import vtk.*;
/**
 *
 * @author Adriano
 */
public class VtkImporterPanel extends vtkPanel 
{    
    private vtkCamera camera;
    private vtkRenderer renderer;
    private vtkRenderWindow renWin;
    
    /**
     * Default Constructor
     */
    public VtkImporterPanel()
    {
        camera = new vtkCamera();
        renderer = new vtkRenderer();
        
                
    }  

    /**
     * @return the importerRenderer
     */
    public vtkRenderer getImporterRenderer() 
    {
        //return importerRenderer;
        return super.GetRenderer();
    }
    /**
     * @param importerRenderer the importerRenderer to set
     */
    public void setRenderer(vtkRenderer renderer) 
    {
        this.renderer = renderer;
    }
        
    public void setRenderWindow(vtkRenderWindow renWin)
    {
        // remove renderer from super class
        super.rw.RemoveRenderer(ren);
        // add renderer from importer
        super.rw.AddRenderer(renderer);
    }
    
    public void setCamera(vtkCamera camera)
    {
        this.camera = camera; 
    }  
    
    public vtkCamera getCamera()
    {
        return camera;
    }
}
